{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}
{% set _preview      = block('preview') %}
{% set _form         = block('form') %}
{% set _show         = block('show') %}
{% set _list_table   = block('list_table') %}
{% set _list_filters = block('list_filters') %}
{% set _side_menu    = block('side_menu') %}
{% set _content      = block('content') %}
{% set _title        = block('title') %}
{% set _breadcrumb   = block('breadcrumb') %}
<!DOCTYPE html>

<title>Project'Or Ria</title>
<!-- Library CSS files -->
<link href="/OrangeHRM_files/reset.css" rel="stylesheet" type="text/css">
<link href="/bundles/sonataadmin/css/layout.css" rel="stylesheet" type="text/css">
<link href="/OrangeHRM_files/tipTip.css" rel="stylesheet" type="text/css">
<link href="/OrangeHRM_files/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css">
<link href="/OrangeHRM_files/jquery.autocomplete.css" rel="stylesheet" type="text/css">

<link href="/OrangeHRM_files/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css">
<!-- Custom CSS files -->
<link href="/OrangeHRM_files/main.css" rel="stylesheet" type="text/css">

<link href="/OrangeHRM_files/datepicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/OrangeHRM_files/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.validate.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.ui.core.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.autocomplete.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/orangehrm.autocomplete.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.ui.datepicker.js"></script>

<script type="text/javascript" src="/OrangeHRM_files/orangehrm.datepicker.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.form.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.tipTip.minified.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/bootstrap-modal.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/jquery.clickoutside.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/orangehrm.validate.js"></script>
<script type="text/javascript" src="/OrangeHRM_files/archive.js"></script>
 {% block javascripts %}
            <script src="{{ asset('bundles/sonatajquery/jquery-1.8.3.js') }}" type="text/javascript"></script>
            <script src="{{ asset('bundles/sonatajquery/jquery-ui-1.8.23.js') }}" type="text/javascript"></script>
            <script src="{{ asset('bundles/sonatajquery/jquery-ui-i18n.js') }}" type="text/javascript"></script>

            <script src="{{ asset('bundles/sonataadmin/bootstrap/js/bootstrap.min.js') }}" type="text/javascript"></script>

            <script src="{{ asset('bundles/sonataadmin/qtip/jquery.qtip-1.0.0-rc3.min.js') }}" type="text/javascript"></script>
            <script src="{{ asset('bundles/sonataadmin/jquery/jquery.form.js') }}" type="text/javascript"></script>
            <script src="{{ asset('bundles/sonataadmin/base.js') }}" type="text/javascript"></script>
        {% endblock %}

<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->        



</head>
<body>

    <div id="wrapper">

        <div id="branding">
            <img src="/images/LogoProjectOrRIA.png" width="283" height="56" alt="Project'OrRia">
            <a href="" id="welcome" class="panelTrigger">Welcome Admin</a>
            <div id="welcome-menu" class="panelContainer">
                <ul>
                    <li><a href="#">Change Password</a></li>
                    <li><a href="#">Logout</a></li>
                </ul>
            </div>
            <div id="help-menu" class="panelContainer">
                <ul>
                    <li><a href="http://www.orangehrm.com/support-plans.php?utm_source=application_support&utm_medium=app_url&utm_campaign=orangeapp" target="_blank">Support</a></li>
                    <li><a href="http://www.orangehrm.com/training.php?utm_source=application_traning&utm_medium=app_url&utm_campaign=orangeapp" target="_blank">Training</a></li>
                    <li><a href="http://www.orangehrm.com/addon-plans.shtml?utm_source=application_addons&utm_medium=app_url&utm_campaign=orangeapp" target="_blank">Add-Ons</a></li>
                    <li><a href="http://www.orangehrm.com/customizations.php?utm_source=application_cus&utm_medium=app_url&utm_campaign=orangeapp" target="_blank">Customizations</a></li>
                    <li><a href="http://forum.orangehrm.com/" target="_blank">Forum</a></li>
                    <li><a href="http://blog.orangehrm.com/" target="_blank">Blog</a></li>
                    <li><a href="http://sourceforge.net/apps/mantisbt/orangehrm/view_all_bug_page.php" target="_blank">Bug Tracker</a></li>                        
                </ul>
            </div>
        </div> <!-- branding -->      


        <div class="menu">

            <ul>


                                {% block top_bar_before_nav %} {% endblock %}
                                {% block sonata_top_bar_nav %}
                                    {% if app.security.token and is_granted('ROLE_SONATA_ADMIN') %}
                                        {% for group in admin_pool.dashboardgroups %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ group.label|trans({}, group.label_catalogue) }} <span class="caret"></span></a>
                    <ul class="dropdown-menu">
                                                    {% for admin in group.items %}
                                                        {% if admin.hasroute('list') and admin.isGranted('LIST') %}
                            <li><a href="{{ admin.generateUrl('list')}}">{{ admin.label|trans({}, admin.translationdomain) }}</a></li>
                                                        {% endif %}
                                                    {% endfor %}
                        </ul>
                    </li>
                                        {% endfor %}
                                    {% endif %}
                                {% endblock %}
                                {% block top_bar_after_nav %} {% endblock %}



                </ul> <!-- first level -->

            </div> <!-- menu -->
            <div id="content">


                <div id="content">
                    <div class="container-fluid">
            {% block notice %}
                {% for notice_level in ['success','error','info', 'warning'] %}
                    {% set session_var = 'sonata_flash_' ~ notice_level %}
                    {% for flash in app.session.flashbag.get(session_var) %}
                            <div class="alert {{ 'alert-' ~ notice_level }}">
                            {{ flash|trans([], 'SonataAdminBundle') }}
                                </div>
              {% endfor %}
                {% endfor %}
            {% endblock %}
                                <div class="row-fluid">

                                    <div class="span4 offset2">

                                    </div>
                                    <div class="row-fluid">
                {% if _side_menu is not empty %}
                                            <div class="sidebar span2">
                                                <div class="well sonata-ba-side-menu" style="padding: 8px 0;">{{ _side_menu|raw }}</div>
                                            </div>
                {% endif %}

                                            <div class="content {{ _side_menu is not empty ? ' span10' : 'span12' }}">
                    {% block sonata_admin_content %}

                        {% if _preview is not empty %}
                                                    <div class="sonata-ba-preview">{{ _preview|raw }}</div>
                        {% endif %}

                        {% if _content is not empty %}
                                                    <div class="sonata-ba-content">{{ _content|raw }}</div>
                        {% endif %}

                        {% if _show is not empty %}
                                                    <div class="sonata-ba-show">{{ _show|raw }}</div>
                        {% endif %}

                        {% if _form is not empty %}
                                                    <div class="sonata-ba-form">{{ _form|raw }}</div>
                        {% endif %}

                       {% if _list_table is not empty or _list_filters is not empty %}
                                                    <div class="row-fluid">
                                    {{ _list_filters|raw }}
                                                            <div id="customerList">
                                                                <div id="search-results" class="box noHeader">
                                                                    <div class="inner">
                                                {%block actions %}{% endblock %}
                                    {{ _list_table|raw }}
                                                                        </div>
                                                                    </div>
                                                                </div>

                                                            </div>
                        {% endif %}

                    {% endblock %}
                                                        </div>
                                                    </div>

            {% block footer %}
                                                    <div id="footer">
                                                        Sifast Live ver 3.0.1 ©
                                                        <a target="_blank" href="">Sifast</a>
                                                        . 2005 - 2013 All rights reserved.
                                                    </div>
            {% endblock %}
                                                </div>

                                            </div> <!-- content -->

                                        </div> <!-- wrapper -->

                                    </div>       








                                    <div id="tiptip_holder" style="max-width:200px;"><div id="tiptip_arrow"><div id="tiptip_arrow_inner"></div></div><div id="tiptip_content"></div></div>
                                    <script>
                                    $('.datepicker').datepicker();
                                    $('input[readonly=readonly]').attr('disabled','disabled')
                                        </script>

                                </body></html>